{% extends "admin_tools/dashboard/module.html" %}
{% block module_content %}
{% for js in module.Media.js %}
	<script type="text/javascript" src="{{ js }}"></script>
{% endfor %}
<h3><a href="/this_site/dayreport/">Отчет за день</a></h3>
<ul><li>
	<form id="id_report_form" method="post">
		{% csrf_token %}
		<div class="form-row date">
			{{ module.form.date.errors }}
			<div><label for="id_date">Дата: </label>{{ module.form.date }}<input type="submit" value="Сформировать" id="id_send_report_form"/></div>
    	</div>
    </form>
    <div id="id_report"></div>
</li></ul>
<h3><a href="">Отчет за выбранный период</a></h3>
<ul><li>
	<form id="id_report_start_end_form" method="post">
		{% csrf_token %}
		<div class="form-row date_start">
			{{ module.form_start_end.date_start.errors }}
			<div><label for="id_date_start">Начало: </label>{{ module.form_start_end.date_start }}</div>
		</div>
		<div class="form-row date_end">
			{{ module.form_start_end.date_end.errors }}
			<div><label for="id_date_end">Конец: &nbsp;</label>{{ module.form_start_end.date_end }}<input type="submit" value="Сформировать" id="id_send_report_start_end_form"/></div>
		</div>
	</form>
</li></ul>
{% endblock %}